package com.youlai.boot.system.model.form;

import java.io.Serial;
import java.io.Serializable;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import java.time.LocalDate;
import java.time.LocalDateTime;
import com.fasterxml.jackson.annotation.JsonFormat;
import jakarta.validation.constraints.*;

/**
 * 赛事中心表单对象
 *
 * @author lwb
 * @since 2025-03-22 18:29
 */
@Getter
@Setter
@Schema(description = "赛事中心表单对象")
public class SysEventCenterForm implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    private Long id;

    @Schema(description = "联赛名称")
    @NotBlank(message = "联赛名称不能为空")
    @Size(max=64, message="联赛名称长度不能超过64个字符")
    private String name;

    @Schema(description = "开赛时间")
    @NotNull(message = "开赛时间不能为空")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime startTime;

    @Schema(description = "主队")
    @NotBlank(message = "主队不能为空")
    @Size(max=32, message="主队长度不能超过32个字符")
    private String homeTeam;

    @Schema(description = "客队")
    @NotBlank(message = "客队不能为空")
    @Size(max=32, message="客队长度不能超过32个字符")
    private String patronTeam;

    @Schema(description = "推荐")
    @NotBlank(message = "推荐不能为空")
    @Size(max=64, message="推荐长度不能超过64个字符")
    private String recommend;

    @Schema(description = "重心指数")
    @NotNull(message = "重心指数不能为空")
    private Integer exponent;

    @Schema(description = "完赛比分")
    @Size(max=64, message="完赛比分长度不能超过64个字符")
    private String score;

    @Schema(description = "结果")
    @Size(max=64, message="结果长度不能超过64个字符")
    private String result;

    @Schema(description = "背景颜色")
    @NotNull(message = "背景颜色不能为空")
    private String color;
}
